package com.xdxc.feign;

import com.xdxc.form.GradingResultForm;
import com.xdxc.model.form.GradingForm;
import com.xdxc.model.query.ExamsQuery;
import com.xdxc.model.vo.UserAnswerVo;
import com.xdxc.response.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(name = "xdxc-grading")

public interface GradingFeign {

    @PostMapping("/v1/getExamProgress/")
    Result<GradingForm>  getExamProgress(@RequestBody ExamsQuery examsQuery);



    @PostMapping("/v1/getGradingResult/paper-result")
    Result<List<UserAnswerVo>>  getGradingResult(@RequestBody GradingResultForm gradingResultForm);

}
